<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta charset="utf-8">
<title>商品库存</title>
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="stylesheet" href="../../res/css/layui.css" media="all">
<link rel="stylesheet" href="../../res/css/cst/snproduction.css" media="all">
<script type="text/javascript" src="../../res/js/jquery-1.11.2.min.js"></script>
</head>
<body>

	<div class="demoTable" style="margin-left: 20px; margin-top: 10px;">
		<from class="layui-form"> 
		商品名称:
		<div class="layui-inline">
			<select lay-filter="aihao" id="comSelect" style="width: 80px;">
			</select>
		</div>

		分公司名称:
		<div class="layui-inline">
			<select lay-filter="aihao" id="braSelect" style="width: 80px;">
			</select>
		</div>
		</from>
		<button class="layui-btn layui-btn-sm" data-type="reload" id="selectButton">搜索</button>

	</div>

	<table class="layui-table"
		lay-data="{ url:'../../cominventory/findAll.action', page:true, id:'idTest'}"
		lay-filter="demo">
		<thead>
			<tr>
				<th lay-data="{type:'checkbox', fixed: 'left'}"></th>
				<th lay-data="{field:'ciId',align:'center'}">商品库存编号</th>
				<th lay-data="{field:'comName',sort: true, align:'center'}">商品名称</th>
				<th lay-data="{field:'braName',sort: true, align:'center'}">分公司名称</th>
				<th lay-data="{field:'ciNumber',sort: true, align:'center'}">库存数量</th>
				<th lay-data="{field:'ciUnit',sort: true, align:'center'}">材料单位</th>
				<th lay-data="{field:'ciSales',sort: true, align:'center'}">销售价</th>
				<th lay-data="{fixed: 'right',fixed: 'right', align:'center', toolbar: '#barDemo'}">操作</th>
			</tr>
		</thead>
	</table>

<script type="text/html" id="barDemo">
	 <button class="layui-btn layui-btn-xs" lay-event="detail">查看详情</button>
</script>

	<!-- 增加或修改的弹框 -->
	<div id="detailDiv" style="display: none;">
		<h2 style="margin: 0 auto;text-align: center">——————————查看商品库存记录——————————</h2>
		<table class="layui-table"
			lay-data="{ url:'../../comindetail/findAll.action', page:true, id:'InDetail'}"
			lay-filter="demo">
			<thead>
				<tr>
					<th lay-data="{type:'checkbox', fixed: 'left'}"></th>
					<th lay-data="{field:'cidId',width:'80', align:'center',width:'100'}">库存明细编号</th>
					<th lay-data="{field:'cidExplain',sort: true, align:'center',width:'330'}">材料库存备注</th>
					<th lay-data="{field:'optime',sort: true, align:'center',width:'200'}">操作时间</th>
				</tr>
			</thead>
		</table>
	</div>
	
	<script src="../../res/layui.all.js" charset="utf-8"></script>
	<script type="text/javascript" src="../../res/js/cst/sncominventory.js"></script>
</body>
</html>